/**管道流*/

var fs = require('fs');

var readStream=fs.createReadStream('./file/flower.jpg');
var writeStream=fs.createWriteStream('./file/flower23.jpg');

/*fs.createReadStream('./file/flower.jpg')
    .pipe(fs.createWriteStream('./file/flower23.jpg'));*/

readStream.pipe(writeStream);